﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Templay;
using System.Diagnostics;

namespace Sample1
{
    class Program
    {
        static void Main(string[] args)
        {
            Stopwatch sw = new Stopwatch();
            sw.Start();

            Template<XmlParser> template = new Template<XmlParser>();
            
            Tags.Consolus consolus = new Tags.Consolus();
            consolus.Text = "Hey";

            template.AddExternalReference("external1", consolus);
            template.Render("Templates\\Test.xml", OpenMode.FILE);
            template.Run();

            sw.Stop();
            Console.WriteLine(sw.Elapsed);
            Console.ReadKey();
        }
    }
}
